// @ts-ignore
import { request } from '@/request/request';

/**
 * 未使用卡劵.
 * @param data
 */
export const getCoupons = (data: any):Promise<any> => {
    return request({ url: '/user/coupons', data, method: 'GET' })
}

/**
 * 使用记录.
 * @param data
 */
export const getCouponUseRecords = (data: any):Promise<any> => {
    return request({ url: '/user/couponUseRecords', data, method: 'GET' })
}

/**
 * 商城下单待使用卡劵.
 * @param data total 商品总金额
 */
export const getMallUseCoupons = (data: any) => {
    return request({ url: '/user/useCoupons', data, method: 'GET' })
}
